/**
 * Created by zq on 2017/1/20.
 */
var data={
    "msg": "查询操作成功",
    "result": {
        "com": "yunda",
        "condition": "F00",
        "courierCompany": "韵达快递",
        "data": [
            {
                "context": "[广东广州天河区东圃公司车陂便民寄存分部]快件已被 申通快递。申通快递。 签收",
                "ftime": "2016-12-07 12:12:27",
                "location": "广东广州天河区东圃公司车陂便民寄存分部",
                "time": "2016-12-07 12:12:27"
            },
            {
                "context": "[广东广州天河区东圃公司车陂便民寄存分部]进行派件扫描；派送业务员：欧阳；联系电话：18144805173",
                "ftime": "2016-12-07 11:40:05",
                "location": "广东广州天河区东圃公司车陂便民寄存分部",
                "time": "2016-12-07 11:40:05"
            },
            {
                "context": "[广东广州天河区东圃公司车陂便民寄存分部]到达目的地网点，快件将很快进行派送",
                "ftime": "2016-12-07 11:32:33",
                "location": "广东广州天河区东圃公司车陂便民寄存分部",
                "time": "2016-12-07 11:32:33"
            },
            {
                "context": "[广东广州天河区东圃公司]进行快件扫描，将发往：广东广州天河区东圃公司车陂东溪便民服务站",
                "ftime": "2016-12-07 05:40:03",
                "location": "广东广州天河区东圃公司",
                "time": "2016-12-07 05:40:03"
            },
            {
                "context": "[广东广州分拨中心]从站点发出，本次转运目的地：广东广州天河区东圃公司",
                "ftime": "2016-12-06 21:46:11",
                "location": "广东广州分拨中心",
                "time": "2016-12-06 21:46:11"
            },
            {
                "context": "[广东广州分拨中心]在分拨中心进行卸车扫描",
                "ftime": "2016-12-06 21:34:12",
                "location": "广东广州分拨中心",
                "time": "2016-12-06 21:34:12"
            },
            {
                "context": "[安徽合肥分拨中心]进行装车扫描，即将发往：广东广州分拨中心",
                "ftime": "2016-12-05 20:31:07",
                "location": "安徽合肥分拨中心",
                "time": "2016-12-05 20:31:07"
            },
            {
                "context": "[安徽合肥分拨中心]在分拨中心进行称重扫描",
                "ftime": "2016-12-05 20:29:14",
                "location": "安徽合肥分拨中心",
                "time": "2016-12-05 20:29:14"
            },
            {
                "context": "[安徽合肥经济开发区公司]进行揽件扫描",
                "ftime": "2016-12-05 19:53:31",
                "location": "安徽合肥经济开发区公司",
                "time": "2016-12-05 19:53:31"
            },
            {
                "context": "[安徽合肥经济开发区公司]进行下级地点扫描，将发往：广东广州网点包",
                "ftime": "2016-12-05 19:41:19",
                "location": "安徽合肥经济开发区公司",
                "time": "2016-12-05 19:41:19"
            },
            {
                "context": "[安徽合肥经济开发区公司]进行揽件扫描",
                "ftime": "2016-12-05 18:46:28",
                "location": "安徽合肥经济开发区公司",
                "time": "2016-12-05 18:46:28"
            }
        ],
        "ischeck": "1",
        "message": "ok",
        "nu": "3902150646703",
        "state": "3",
        "status": "200"
    },
    "errorCode": "1001",
    "status": true
}
var logInfo=data.result.data;
$('.courierCompany').append(data.result.courierCompany)
for(var i=0;i<logInfo.length;i++){
    var html;
    if(i==0){
       html="<li class='first'>"+
        "<p>"+logInfo[i].ftime+"</p>"+
        "<p>"+logInfo[i].context+"</p>"+
        "<span class='before'></span><span class='after'></span><i class='mh-icon mh-icon-new'></i>" +
           "</li>"
    }
    else{
        html="<li>"+
            "<p>"+logInfo[i].time+"</p>"+
            "<p>"+logInfo[i].context+"</p>"+
            "<span class='before'></span><span class='after'></span></li>"
    }
    $('.mh-list>ul').append(html);
}